#pragma once
#include <iostream>
#include <string>

using namespace std;

class Task
{
public:
    Task()
    {}
    Task(int a = 0, int b = 0)
        :_a(a), _b(b), _result(0)
    {}
    void Excute()
    {
        _result = _a + _b;
    }

    string RTostring()
    {
        return to_string(_a) + "+" + to_string(_b) + "=" + to_string(_result);
    }
    string DTostring()
    {
        return to_string(_a) + "+" + to_string(_b) + "= ?";
    }
    void operator()()
    {
        Excute();
    }

    ~Task()
    {}

private:
    int _a;
    int _b;
    int _result;
};
